var g_defaultFormValidatorSettings = {
    errorContainer: ".common_errors_container",
    errorLabelContainer: ".common_errors_container ul",
    wrapper: "li",
    errorClass: "incorrect_field",
    showErrors: function(errorMap, errorList) {
        var errorMap = errorMap || {};
        if ( ( this.numberOfInvalids() == 0 ) && ( $(errorMap).size() == 0 ) )
        {
            $(".common_errors_container").removeClass('global_error_field');
        }
        else
        {
            if (!$(".common_errors_container").hasClass('global_error_field'))
            {
                $(".common_errors_container").addClass('global_error_field');
            }
        }
        this.defaultShowErrors();
    }
};

/**
 * Generates validation settings for default form.
 */
function generateSettings( validateParams )
{
    return $.extend( true, {}, g_defaultFormValidatorSettings, validateParams );
}